import { createApp } from 'vue'
import App from './App.vue'
import elm from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 导入Element Plus图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

// 全局注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(elm, {
  locale: zhCn,  // 保持中文语言配置
})

app.mount('#app')
    